function StageAssistant() {
}

StageAssistant.prototype.setup = function() {
	// Initialize AdMob
	AdMob.ad.initialize({
		pub_id: "a14cfdc892e3c4b", // your publisher id
		bg_color: "#000", // optional background color, defaults to #fff
		text_color: "#fff" // optional background color, defaults to #000
//	,test_mode: true // optional, set to true for testing ads, remove or set to false for production
	});
	
	appMenuAttr = {omitDefaultItems: true};
	appMenuModel = {
		visible: true,
		items: [
			Mojo.Menu.editItem,
			{label: "Preferences", command: 'prefs-cmd'},
			{label: "Help", command: 'help-cmd'}
//			{label: "About", command: 'about-cmd'}
		]};
	this.controller.pushScene("dashboard");
}

StageAssistant.prototype.handleCommand = function(event){
	var currentScene = this.controller.activeScene();
	if (event.type === Mojo.Event.command) {
		switch (event.command) {
			case "prefs-cmd":
				this.controller.pushScene("settings");
				break;
			case "about-cmd":
				this.controller.pushScene("about");
				break;
			case "help-cmd":
				this.controller.pushScene("help");
				break;
		}
	}
};